package com.bojiu.lawsearch.lawsearch.mapper;

import com.bojiu.lawsearch.lawsearch.model.LawBaseInfo;
import com.bojiu.lawsearch.lawsearch.model.SearchFactor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: afdiao
 * @Date：2020/3/6 22:51
 * @Description:
 */
@Repository
@Mapper
public interface LawBaseInfoMapper extends ObjMapper<LawBaseInfo> {
    int getmaxId();

    List<LawBaseInfo> getLawBaseInfoList(@Param("title") String title);

    List<LawBaseInfo> searchBaseInfoByFactor(SearchFactor searchFactor);

    void clickCount(@Param("id") int id);
}
